package com.mijie.homi.dao.notify;

import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.mijie.core.IBatisDao;
import com.mijie.homi.common.domain.Notify;

@Repository
public class NotifyDao extends IBatisDao {

	public List<Notify> listNotifyByUserId(int userId){
		return this.selectList("listNotifyByUserId", userId);
	}
	
	
	public int deleteNotify(int userId,String[] id){
		HashMap<String,Object> parameter = new HashMap<String,Object>();
		parameter.put("array", id);
		parameter.put("userId", userId);
		return this.delete("deleteNotify", parameter);
	}
}
